﻿@using Auth.Application.Dtos
@if (ViewData["ToolBarModel"] != null)
{
    <script type="text/html" id="toolbarButton">
        <div class="layui-btn-group tool-btn" id="tool-btn">
            @foreach (var button in ViewData["ToolBarModel"] as List<MenuDto>)
            {
                <button class="layui-btn  layui-btn-sm" lay-event="@button.Code" data-type="@button.Code">
                    <i class="layui-icon">
                        @Html.Raw(@button.Icon)
                    </i> @button.Name
                </button>
            }
        </div>
    </script>
}

@if (ViewData["ToolModel"] != null)
{
    <script type="text/html" id="toolButton">
        <div class="layui-btn-group tool-btn" id="tool-btn">
            @foreach (var button in ViewData["ToolModel"] as List<MenuDto>)
            {
                <button class="layui-btn  layui-btn-sm" lay-event="@button.Code" data-type="@button.Code">
                    <i class="layui-icon">
                        @Html.Raw(@button.Icon)
                    </i> @button.Name
                </button>
            }
        </div>
    </script>
}